using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MangaDownloader
{
    public partial class FormSetting : Form
    {
        private string _xpathForChapter;
        private string _xpathForImageUrl;

        public string XpathForChapter
        {
            get { return _xpathForChapter; }
            set { _xpathForChapter = value; }
        }

        public string XpathForImageUrl
        {
            get { return _xpathForImageUrl; }
            set { _xpathForImageUrl = value; }
        }

        public FormSetting(string xpathForChapter, string xpathForImageUrl)
        {
            InitializeComponent();
            XpathForChapter = xpathForChapter;
            XpathForImageUrl = xpathForImageUrl;
        }

        private void FormSetting_Load(object sender, EventArgs e)
        {
            txtXpathForChapter.Text = XpathForChapter;
            txtXpathForImageUrl.Text = XpathForImageUrl;
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            XpathForChapter = txtXpathForChapter.Text.Trim();
            XpathForImageUrl = txtXpathForImageUrl.Text.Trim();
        }
    }
}